package com.dxy.lc.service;

import com.dxy.lc.model.bean.ChatHistoryQo;
import com.dxy.lc.model.bean.MsgPayload;
import com.dxy.lc.model.bean.SetReadDto;
import com.dxy.lc.model.entity.Message;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;

/**
* <p>
*  服务接口
* </p>
*
* @author dxy
* @since 2024-11-07
*/
public interface MessageService extends IService<Message> {


    void setReadById(SetReadDto param);

    void setReadByRoomId(SetReadDto param);

    long countUnreadMsg(Integer roomId);

    List<Message> getChatHistory(ChatHistoryQo param);

    void saveAndSendMsg(MsgPayload msgPayload);

    long getUnreadCount();
}
